gtk4.git
4 years agoMerge branch 'wip/baedert/for-master' into 'master'
Matthias Clasen [Thu, 15 Jul 2021 18:31:22 +0000 (18:31 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'

snapshot: Replace trivial gradients with color nodes

See merge request GNOME/gtk!3753

4 years agosnapshot: Only compute start and end point if we have to
Timm Bäder [Thu, 15 Jul 2021 14:52:38 +0000 (16:52 +0200)]
snapshot: Only compute start and end point if we have to

If the linear gradient results in a color node, we don't need the start
and end point. Only declare and compute it if we need to.

4 years agosnapshot: Replace trivial gradients with color nodes
Timm Bäder [Thu, 15 Jul 2021 14:50:32 +0000 (16:50 +0200)]
snapshot: Replace trivial gradients with color nodes

Extend this to all existing gradient types

4 years agoMerge branch 'wip/otte/for-master' into 'master'
Benjamin Otte [Wed, 14 Jul 2021 18:46:36 +0000 (18:46 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

rendernodeparser: Don't use %g when writing file

See merge request GNOME/gtk!3752

4 years agorendernodeparser: Remove leftover debug prints
Benjamin Otte [Wed, 14 Jul 2021 18:19:40 +0000 (20:19 +0200)]
rendernodeparser: Remove leftover debug prints

4 years agorendernodeparser: Don't use %g when writing file
Benjamin Otte [Wed, 14 Jul 2021 18:18:44 +0000 (20:18 +0200)]
rendernodeparser: Don't use %g when writing file

%g is locale dependent and can add "," where "." should be. Use
string_append_double() instead.

4 years agoMerge branch 'doc-fixes' into 'master'
Emmanuele Bassi [Tue, 13 Jul 2021 23:43:06 +0000 (23:43 +0000)]
Merge branch 'doc-fixes' into 'master'

doc: Syntax fixes

See merge request GNOME/gtk!3751

4 years agodoc: Syntax fixes
Marco Melorio [Tue, 13 Jul 2021 22:53:19 +0000 (22:53 +0000)]
doc: Syntax fixes

4 years agoMerge branch 'fp16-tests' into 'master'
Matthias Clasen [Tue, 13 Jul 2021 13:38:21 +0000 (13:38 +0000)]
Merge branch 'fp16-tests' into 'master'

ngl: Make the C half-float implementation accessible

See merge request GNOME/gtk!3748

4 years agotests: Add some fp16 tests
Matthias Clasen [Tue, 13 Jul 2021 13:02:16 +0000 (09:02 -0400)]
tests: Add some fp16 tests

4 years agongl: Make the C half-float implementation accessible
Matthias Clasen [Tue, 13 Jul 2021 13:02:35 +0000 (09:02 -0400)]
ngl: Make the C half-float implementation accessible

Make this accessible for tests.

4 years agoMerge branch 'gi-fixes' into 'master'
Emmanuele Bassi [Tue, 13 Jul 2021 11:21:20 +0000 (11:21 +0000)]
Merge branch 'gi-fixes' into 'master'

Various introspection fixes

See merge request GNOME/gtk!3747

4 years agogtk: fix GtkPasswordEntryBuffer introspection
Marc-André Lureau [Tue, 13 Jul 2021 11:03:03 +0000 (15:03 +0400)]
gtk: fix GtkPasswordEntryBuffer introspection

Move the source file to public_sources list, and fix tag annotation.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
4 years agoAdd GtkMenuButton:primary Since: annotation
Marc-André Lureau [Tue, 13 Jul 2021 07:31:00 +0000 (11:31 +0400)]
Add GtkMenuButton:primary Since: annotation

Property added in commit a74420bc1a501f6ee951ed152e8f9a941b0c8438.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
4 years agoAdd GTK_DEBUG_ICONFALLBACK Since: 4.2 annotation
Marc-André Lureau [Tue, 13 Jul 2021 07:26:37 +0000 (11:26 +0400)]
Add GTK_DEBUG_ICONFALLBACK Since: 4.2 annotation

Introduced in commit 6f8240805617c2c772c4d298dc692ac831d22013.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
4 years agoUpdate Brazilian Portuguese translation
Rafael Fontenelle [Sat, 10 Jul 2021 19:29:56 +0000 (19:29 +0000)]
Update Brazilian Portuguese translation

(cherry picked from commit c7a7fc4de64e830bc5a67edad3fea10df67f668c)

4 years agoUpdate Brazilian Portuguese translation
Rafael Fontenelle [Sat, 10 Jul 2021 17:13:59 +0000 (17:13 +0000)]
Update Brazilian Portuguese translation

(cherry picked from commit 72c3026764fce622dcef4b51cee75eec44870a55)

4 years agoMerge branch 'activatable-buttons' into 'master'
Matthias Clasen [Sat, 10 Jul 2021 12:59:39 +0000 (12:59 +0000)]
Merge branch 'activatable-buttons' into 'master'

menubutton: Make menu buttons activatable again

Closes #4079

See merge request GNOME/gtk!3728

4 years agoMerge branch 'wip/chergert/fix-4094' into 'master'
Matthias Clasen [Fri, 9 Jul 2021 19:29:41 +0000 (19:29 +0000)]
Merge branch 'wip/chergert/fix-4094' into 'master'

joinedmenu: add helper to join menus instead of nesting

Closes #4094

See merge request GNOME/gtk!3739

4 years agoMerge branch 'gdkkeys-m' into 'master'
Matthias Clasen [Fri, 9 Jul 2021 10:58:23 +0000 (10:58 +0000)]
Merge branch 'gdkkeys-m' into 'master'

[master] gdkkeys-win32.c: fix initialisation of key_state in update_keymap

See merge request GNOME/gtk!3742

4 years agoMerge branch 'dynamic-typelib-path' into 'master'
Matthias Clasen [Fri, 9 Jul 2021 10:57:37 +0000 (10:57 +0000)]
Merge branch 'dynamic-typelib-path' into 'master'

build: Get typelib dir dynamically using gobject-introspection dependency

See merge request GNOME/gtk!3737

4 years agoMerge branch 'invisible-char-fix' into 'master'
Matthias Clasen [Fri, 9 Jul 2021 10:56:51 +0000 (10:56 +0000)]
Merge branch 'invisible-char-fix' into 'master'

textbtree: Initialize to zero the tags counting array

See merge request GNOME/gtk!3740

4 years agogdkkeys-win32.c: fix initialisation of key_state in update_keymap
Jeremy Tan [Fri, 9 Jul 2021 04:35:44 +0000 (12:35 +0800)]
gdkkeys-win32.c: fix initialisation of key_state in update_keymap

It apparently worked by chance in the past, but now causes e.g.
alphanumeric characters to be interpreted as half-width katakana
when using the Japanese IME.

4 years agotextbtree: Initialize to zero the tags counting array
Marco Trevisan (Treviño) [Fri, 9 Jul 2021 01:34:40 +0000 (03:34 +0200)]
textbtree: Initialize to zero the tags counting array

We're using the tag contents array to count the number of invisible tags
set but we always increase it without being initialized.

This may lead to unexpected behavior when traversing them and it's
causing a reliable failure in the textiter tests under s390x.

So, memset that area content to 0 once allocated. It's not needed to do
the same for the tags themselves as we always assign them.

 Conditional jump or move depends on uninitialised value(s)
   at 0x4CFAA00: _gtk_text_btree_char_is_invisible (gtktextbtree.c:2569)
   by 0x4B8A1BB: find_visible_by_log_attrs (gtktextiter.c:3244)
   by 0x10E93D: check_backward_visible_word_start (textiter.c:484)
   by 0x10E93D: test_visible_word_boundaries (textiter.c:523)
   by 0x533288F: g_test_run_suite (in /usr/lib/s390x-linux-gnu/libglib-2.0.so.0)
   by 0x53328E7: g_test_run (in /usr/lib/s390x-linux-gnu/libglib-2.0.so.0)
   by 0x109CC1: main (textiter.c:807)

4 years agojoinedmenu: add helper to join menus instead of nesting
Christian Hergert [Thu, 8 Jul 2021 21:16:06 +0000 (14:16 -0700)]
joinedmenu: add helper to join menus instead of nesting

In many cases, we have an "extra-menu" property that is used to allow
applications to join menus into the native menu for the widget. Previously,
this was done by nesting that menu in a section.

Doing so increases the complexity of the rules for GtkMenuTracker as you
may want different handling from inside of the section vs toplevel
sections.

If instead we synthetically glue the menus together, we have a much more
natural joining of menus as the application developer would expect for
their menu.

This also ports GtkLabel, GtkText, GtkPasswordEntry, and GtkTextView to
use the joined menu helper.

The joined menu helper comes originally from GNOME Builder and has had
extensive use there.

Fixes #4094

4 years agobuild: Get typelib dir dynamically using gobject-introspection dependency
Marco Trevisan (Treviño) [Thu, 8 Jul 2021 02:33:16 +0000 (04:33 +0200)]
build: Get typelib dir dynamically using gobject-introspection dependency

We hardcoded the typelib directory for only an arch (and a distro),
while we can just get it from gobject-introspection pkg config if tests
are enabled.

4 years agoMerge branch 'wip/exalm/scroll-touch' into 'master'
Matthias Clasen [Wed, 7 Jul 2021 21:37:58 +0000 (21:37 +0000)]
Merge branch 'wip/exalm/scroll-touch' into 'master'

scrolledwindow: Don't check drag threshold when already scrolling

See merge request GNOME/gtk!3735

4 years agoMerge branch 'text-cursor-extents' into 'master'
Matthias Clasen [Wed, 7 Jul 2021 21:37:14 +0000 (21:37 +0000)]
Merge branch 'text-cursor-extents' into 'master'

text: Add API to compute cursor extents

See merge request GNOME/gtk!3734

4 years agoMerge branch 'wl-since' into 'master'
Matthias Clasen [Wed, 7 Jul 2021 21:36:13 +0000 (21:36 +0000)]
Merge branch 'wl-since' into 'master'

Add missing "Since: 4.X" doc tags

See merge request GNOME/gtk!3736

4 years agoAdd missing "Since: 4.X" tags
Marc-André Lureau [Wed, 7 Jul 2021 16:18:28 +0000 (20:18 +0400)]
Add missing "Since: 4.X" tags

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
4 years agotext: Add API to compute cursor extents
Florian Müllner [Tue, 6 Jul 2021 20:39:05 +0000 (22:39 +0200)]
text: Add API to compute cursor extents

The extents that correspond to the strong/weak cursor at a given
character position can be used for example to point a popover to
text in the widget.

4 years agoscrolledwindow: Don't check drag threshold when already scrolling
Alexander Mikhaylenko [Wed, 7 Jul 2021 14:39:06 +0000 (19:39 +0500)]
scrolledwindow: Don't check drag threshold when already scrolling

Checkout the drag threshold only makes sense when starting a scroll, after
that it just adds jumps when trying to scroll back and forth.

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 6 Jul 2021 00:23:30 +0000 (00:23 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

gtk-demo: Add a slider to the menu example

See merge request GNOME/gtk!3733

4 years agogtk-demo: Add a slider to the menu example
Matthias Clasen [Mon, 5 Jul 2021 23:31:54 +0000 (19:31 -0400)]
gtk-demo: Add a slider to the menu example

This is a fun way to show that we can scale fast.

4 years agoMerge branch 'js-example' into 'master'
Matthias Clasen [Mon, 5 Jul 2021 20:24:30 +0000 (20:24 +0000)]
Merge branch 'js-example' into 'master'

Add a simple Javascript example

See merge request GNOME/gtk!3731

4 years agoMerge branch 'wip/remove-cloudprint' into 'master'
Matthias Clasen [Mon, 5 Jul 2021 20:21:52 +0000 (20:21 +0000)]
Merge branch 'wip/remove-cloudprint' into 'master'

Remove Google Cloud Print backend

See merge request GNOME/gtk!3729

4 years agoUpdate Romanian translation
Florentina Mușat [Mon, 5 Jul 2021 20:01:41 +0000 (20:01 +0000)]
Update Romanian translation

(cherry picked from commit 6ff90954dcca50dbf517277baed65298b6ad4e80)

4 years agoUpdate Romanian translation
Florentina Mușat [Mon, 5 Jul 2021 19:47:15 +0000 (19:47 +0000)]
Update Romanian translation

(cherry picked from commit e5bd6312bed13c36979a14f3d0c5d6bf19fa1274)

4 years agoAdd a simple Javascript example
Matthias Clasen [Mon, 5 Jul 2021 17:44:17 +0000 (13:44 -0400)]
Add a simple Javascript example

This shows how to use a layout manager in a widget,
implemented in javascript. The example sets up the
environment for running from the toplevel dir, assuming
that the build dir is called 'build'.

4 years agoRemove Google Cloud Print backend
Patrick Griffis [Mon, 5 Jul 2021 15:42:39 +0000 (10:42 -0500)]
Remove Google Cloud Print backend
This service was shut down at the start of 2021.

This helpfully removes any dependency on json-glib, librest (and libsoup).

4 years agoappchooserbutton: Make buttons activatable again
Matthias Clasen [Mon, 5 Jul 2021 14:10:44 +0000 (10:10 -0400)]
appchooserbutton: Make buttons activatable again

The activation is simply forwarded to the combobox
within.

4 years agocolorbutton: Make color buttons activatable again
Matthias Clasen [Mon, 5 Jul 2021 14:10:19 +0000 (10:10 -0400)]
colorbutton: Make color buttons activatable again

The activation is simply forwarded to the toggle button
within.

4 years agofont button: Make font buttons activatable again
Matthias Clasen [Mon, 5 Jul 2021 14:09:43 +0000 (10:09 -0400)]
font button: Make font buttons activatable again

The activation is simply forwarded to the toggle button
within.

4 years agomenubutton: Make menu buttons activatable again
Matthias Clasen [Mon, 5 Jul 2021 14:08:43 +0000 (10:08 -0400)]
menubutton: Make menu buttons activatable again

The activation is simply forwarded to the toggle button
within.

Fixes: #4079
4 years agoMerge branch 'master' into 'master'
Matthias Clasen [Mon, 5 Jul 2021 02:45:54 +0000 (02:45 +0000)]
Merge branch 'master' into 'master'

gdk: fix gtk app startup with 'g_value_set_boxed: assertion...

See merge request GNOME/gtk!3714

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sun, 4 Jul 2021 13:46:13 +0000 (13:46 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

widget-factory: Add a default button

Closes #3975

See merge request GNOME/gtk!3725

4 years agoMerge branch 'placeholder-visibility' into 'master'
Matthias Clasen [Sun, 4 Jul 2021 03:14:38 +0000 (03:14 +0000)]
Merge branch 'placeholder-visibility' into 'master'

text: Update placeholder visibility more often

Closes #4066

See merge request GNOME/gtk!3724

4 years agodocs: Fix various link formatting
Matthias Clasen [Sun, 4 Jul 2021 03:11:48 +0000 (23:11 -0400)]
docs: Fix various link formatting

Make links that gi-docgen can undestand.

Fixes: #3975
4 years agowidget-factory: Add a default button
Matthias Clasen [Sun, 4 Jul 2021 03:00:10 +0000 (23:00 -0400)]
widget-factory: Add a default button

Mark one of the buttons in the message dialog
as default, so we can see how the default appears
visually.

4 years agotext: Update placeholder visibility more often
Matthias Clasen [Sun, 4 Jul 2021 02:15:38 +0000 (22:15 -0400)]
text: Update placeholder visibility more often

We need to update the visibility of the placeholder
label when we create it, otherwise we can end up
with placeholder text on top of entry content.

Fixes: #4066
4 years agoMerge branch 'fix-filechooser-critical' into 'master'
Matthias Clasen [Sat, 3 Jul 2021 21:48:41 +0000 (21:48 +0000)]
Merge branch 'fix-filechooser-critical' into 'master'

filechooser: Avoid a critical

Closes #4077

See merge request GNOME/gtk!3722

4 years agoMerge branch 'man-page-improvement' into 'master'
Matthias Clasen [Sat, 3 Jul 2021 19:51:39 +0000 (19:51 +0000)]
Merge branch 'man-page-improvement' into 'master'

docs: Improve the gtk4-launch man page

Closes #4081

See merge request GNOME/gtk!3723

4 years agodocs: Improve the gtk4-launch man page
Matthias Clasen [Sat, 3 Jul 2021 19:22:43 +0000 (15:22 -0400)]
docs: Improve the gtk4-launch man page

Be more precise about where desktop files are found.

Fixes: #4081
4 years agofilechooser: Avoid a critical
Matthias Clasen [Sat, 3 Jul 2021 19:15:06 +0000 (15:15 -0400)]
filechooser: Avoid a critical

This was showing up when calling some filechooser api on
a native filechooser, where we use a filechooser dialog
behind the scenes, but it does not have focus.

Fixes: #4077
4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 3 Jul 2021 13:40:23 +0000 (13:40 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Cosmetics

See merge request GNOME/gtk!3721

4 years agoMerge branch 'fix-gir' into 'master'
Matthias Clasen [Sat, 3 Jul 2021 13:35:22 +0000 (13:35 +0000)]
Merge branch 'fix-gir' into 'master'

meson: Fix generate_gir() dependencies

See merge request GNOME/gtk!3701

4 years agoMerge branch 'scrolling-menus' into 'master'
Matthias Clasen [Sat, 3 Jul 2021 13:31:23 +0000 (13:31 +0000)]
Merge branch 'scrolling-menus' into 'master'

popovermenu: Scroll when necessary

See merge request GNOME/gtk!3717

4 years agoMerge branch 'rerename-mediastream' into 'master'
Benjamin Otte [Sat, 3 Jul 2021 13:28:35 +0000 (13:28 +0000)]
Merge branch 'rerename-mediastream' into 'master'

mediastream: Rename apis one more time

See merge request GNOME/gtk!3720

4 years agoCosmetics
Matthias Clasen [Sat, 3 Jul 2021 13:10:27 +0000 (09:10 -0400)]
Cosmetics

Amend LD_PRELOAD instead of replacing it, so you can just
point it at the right libgtk-4.so while running squares.py
from elsewhere.

4 years agomediastream: Rename apis one more time
Matthias Clasen [Sat, 3 Jul 2021 13:05:33 +0000 (09:05 -0400)]
mediastream: Rename apis one more time

Before we end up with names that we are unhappy with,
rename things one more time, and update all callers.

4 years agoMerge branch 'python-example' into 'master'
Matthias Clasen [Sat, 3 Jul 2021 02:03:16 +0000 (02:03 +0000)]
Merge branch 'python-example' into 'master'

Add a simple python example

See merge request GNOME/gtk!3719

4 years agoAdd a simple python example
Matthias Clasen [Sat, 3 Jul 2021 01:20:39 +0000 (21:20 -0400)]
Add a simple python example

This shows how to do custom drawing in a widget,
implemented in python. The example sets up the
environment for running from the toplevel dir,
assuming that the build dir is called 'build'.

4 years agopopovermenu: Scroll when necessary
Matthias Clasen [Fri, 2 Jul 2021 17:19:02 +0000 (13:19 -0400)]
popovermenu: Scroll when necessary

Add a scrolled window to GtkPopoverMenu, so we can scroll
long menus when there is not enough room.

4 years agoMerge branch 'wip/baedert/wat' into 'master'
Matthias Clasen [Fri, 2 Jul 2021 17:00:41 +0000 (17:00 +0000)]
Merge branch 'wip/baedert/wat' into 'master'

gtkffmediafile: Fix deprecated API usage

See merge request GNOME/gtk!3716

4 years agogtkffmediafile: Fix deprecated API usage
Timm Bäder [Fri, 2 Jul 2021 16:41:55 +0000 (18:41 +0200)]
gtkffmediafile: Fix deprecated API usage

4 years agogdk: fix gtk app startup with 'g_value_set_boxed: assertion G_VALUE_HOLDS_BOXED ...
hudeng [Fri, 2 Jul 2021 09:23:56 +0000 (17:23 +0800)]
gdk: fix gtk app startup with 'g_value_set_boxed: assertion G_VALUE_HOLDS_BOXED (value) failed error message' when xsettings use 'XSETTINGS_TYPE_COLOR' type

4 years agoMerge branch 'text-undo-test' into 'master'
Matthias Clasen [Thu, 1 Jul 2021 22:25:18 +0000 (22:25 +0000)]
Merge branch 'text-undo-test' into 'master'

Add another text history test

See merge request GNOME/gtk!3713

4 years agoAdd another text history test
Matthias Clasen [Thu, 1 Jul 2021 22:08:05 +0000 (18:08 -0400)]
Add another text history test

Add a tests that checks we group undo actions as expected
when the user is typing.

4 years agoMerge branch 'wip/chergert/fix-texthistory-grouping' into 'master'
Matthias Clasen [Thu, 1 Jul 2021 14:17:25 +0000 (14:17 +0000)]
Merge branch 'wip/chergert/fix-texthistory-grouping' into 'master'

texthistory: hoist single actions from group

Closes gnome-text-editor#97

See merge request GNOME/gtk!3711

4 years agotexthistory: hoist single actions from group
Christian Hergert [Wed, 30 Jun 2021 23:40:15 +0000 (16:40 -0700)]
texthistory: hoist single actions from group

In many cases across GtkTextBuffer, we end up with operations performed
inside of a begin/end user action. Those can be coalesced into a single
sub-action within the group, and hoisted out of the group. Doing so
increases the chances that we chain similar actions together for words.

Additionally, this fixes an issue introduced in
6179886b14eccd3034dc8121aac7b709aac073ec for #3977 where GNOME Text Editor
started to group all possible actions into a single group.

Fixes GNOME/gnome-text-editor#97

4 years agoicontheme: Fix binding annotation
Benjamin Otte [Wed, 30 Jun 2021 18:55:25 +0000 (18:55 +0000)]
icontheme: Fix binding annotation

4 years agoMerge branch 'wayland-cursor-theme' into 'master'
Matthias Clasen [Tue, 29 Jun 2021 22:17:49 +0000 (22:17 +0000)]
Merge branch 'wayland-cursor-theme' into 'master'

wayland: Look for cursor themes in $HOME

Closes #4080

See merge request GNOME/gtk!3708

4 years agowayland: Look for cursor themes in $HOME
Matthias Clasen [Tue, 29 Jun 2021 20:57:15 +0000 (16:57 -0400)]
wayland: Look for cursor themes in $HOME

We should look in the same places that libXcursor does,
so add $XDG_DATA_HOME/icons and $HOME/.icons to the list.

Fixes: #4080
4 years agoMerge branch 'more-vbo-overflow' into 'master'
Matthias Clasen [Tue, 29 Jun 2021 20:36:42 +0000 (20:36 +0000)]
Merge branch 'more-vbo-overflow' into 'master'

gsk: Use the right limit for batch size

See merge request GNOME/gtk!3707

4 years agogsk: Another vbo_size overflow fix
Matthias Clasen [Tue, 29 Jun 2021 19:22:40 +0000 (15:22 -0400)]
gsk: Another vbo_size overflow fix

We can overflow vbo_size not just by batching
too much, but also by producing humongous text
nodes. Split them up.

4 years agogsk: Use the right limit for batch size
Matthias Clasen [Tue, 29 Jun 2021 19:21:45 +0000 (15:21 -0400)]
gsk: Use the right limit for batch size

We use 16 bits, so G_MAXINT16 is one bit short.
Just make it explicit as 0xffff.

4 years agoMerge branch 'hello-world-fixup' into 'master'
Matthias Clasen [Tue, 29 Jun 2021 16:59:45 +0000 (16:59 +0000)]
Merge branch 'hello-world-fixup' into 'master'

Update hello-world.c

See merge request GNOME/gtk!3706

4 years agoUpdate hello-world.c
Matthias Clasen [Tue, 29 Jun 2021 12:01:37 +0000 (08:01 -0400)]
Update hello-world.c

Simplify the code a bit and make the window
match the existing screenshot.

4 years agoMerge branch 'avoid-batch-size-overflow' into 'master'
Matthias Clasen [Mon, 28 Jun 2021 21:35:15 +0000 (21:35 +0000)]
Merge branch 'avoid-batch-size-overflow' into 'master'

Revert "gsk: Respect max element vertices limitation"

See merge request GNOME/gtk!3704

4 years agoMerge branch 'wip/exalm/buttons' into 'master'
Matthias Clasen [Mon, 28 Jun 2021 19:10:57 +0000 (19:10 +0000)]
Merge branch 'wip/exalm/buttons' into 'master'

GtkMenuButton icon+arrow support + fixes

Closes #3501

See merge request GNOME/gtk!3694

4 years agoMerge branch 'gtklistitemfactory-autocleanup' into 'master'
Matthias Clasen [Mon, 28 Jun 2021 19:10:04 +0000 (19:10 +0000)]
Merge branch 'gtklistitemfactory-autocleanup' into 'master'

gtk: Define the GtkListItemFactory autocleanup func

See merge request GNOME/gtk!3703

4 years agogsk: Don't overflow vbo_count
Matthias Clasen [Mon, 28 Jun 2021 19:00:41 +0000 (15:00 -0400)]
gsk: Don't overflow vbo_count

We use 16 bits to store vbo_count, so we can't create
batches that have more than 65535 vertices. Pay attention
to that limit when merging batches.

4 years agoRevert "gsk: Respect max element vertices limitation"
Matthias Clasen [Mon, 28 Jun 2021 18:50:58 +0000 (14:50 -0400)]
Revert "gsk: Respect max element vertices limitation"

This reverts commit f58fc6b22e143e43b45f297795959f217a26d95f.

4 years agogtk: Define the GtkListItemFactory autocleanup func
Adrien Plazas [Mon, 28 Jun 2021 12:00:33 +0000 (14:00 +0200)]
gtk: Define the GtkListItemFactory autocleanup func

4 years agoMerge branch 'ebassi/issues-4076' into 'master'
Emmanuele Bassi [Sun, 27 Jun 2021 15:10:15 +0000 (15:10 +0000)]
Merge branch 'ebassi/issues-4076' into 'master'

docs: Use code blocks for inline XML

Closes #4076

See merge request GNOME/gtk!3702

4 years agodocs: Use code blocks for inline XML
Emmanuele Bassi [Sun, 27 Jun 2021 14:25:18 +0000 (15:25 +0100)]
docs: Use code blocks for inline XML

Otherwise the markdown renderer will just ignore them.

Fixes: #4076
4 years agoUpdate Portuguese translation
Hugo Carvalho [Sun, 27 Jun 2021 09:44:44 +0000 (09:44 +0000)]
Update Portuguese translation

(cherry picked from commit a9c68757b5c339ea4a17a03d4f20edef197c717b)

4 years agoMeson: Only g-ir-scanner warnings fatal when buit with -Dwerror=true
Xavier Claessens [Fri, 25 Jun 2021 15:11:12 +0000 (11:11 -0400)]
Meson: Only g-ir-scanner warnings fatal when buit with -Dwerror=true

Also fix deprecation warning that requires using fatal_warnings kwarg
from Meson 0.55.0.

Fixes: #4072.
4 years agomeson: Fix generate_gir() dependencies
Xavier Claessens [Fri, 25 Jun 2021 14:07:55 +0000 (10:07 -0400)]
meson: Fix generate_gir() dependencies

There is no need to search for gir variables into subprojects, they are
part of dependencies objects, meson will find them there.

4 years agomenubutton: Don't hardcode label<->arrow spacing
Alexander Mikhaylenko [Thu, 24 Jun 2021 18:12:31 +0000 (23:12 +0500)]
menubutton: Don't hardcode label<->arrow spacing

This should come from the theme instead, as it does for icon<->arrow.

4 years agomenubutton: Add a way to always show arrow with image buttons
Alexander Mikhaylenko [Mon, 21 Jun 2021 10:13:16 +0000 (15:13 +0500)]
menubutton: Add a way to always show arrow with image buttons

Make sure the button still has the .image-button style class with an icon,
also add it to the initial state with only an arrow. Add a new
.arrow-button style class for the icon+arrow state so it's possible to
style it.

Remove spacing from the label+arrow variant to match, re-add it from the
stylesheet for both.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3501

4 years agomenubutton: Remove a random g_return_if_fail()
Alexander Mikhaylenko [Mon, 21 Jun 2021 09:32:44 +0000 (14:32 +0500)]
menubutton: Remove a random g_return_if_fail()

There's already one above.

4 years agomenubutton: Reset label when setting icon name and vice versa
Alexander Mikhaylenko [Mon, 21 Jun 2021 09:08:14 +0000 (14:08 +0500)]
menubutton: Reset label when setting icon name and vice versa

Match GtkButton.

4 years agobutton: Reset style classes when setting arbitrary children
Alexander Mikhaylenko [Mon, 21 Jun 2021 08:59:28 +0000 (13:59 +0500)]
button: Reset style classes when setting arbitrary children

Don't leave leftover .image-button or .text-button.

4 years agoMerge branch 'wip/sadiq/reveal-controls-on-touch' into 'master'
Matthias Clasen [Thu, 24 Jun 2021 15:11:33 +0000 (15:11 +0000)]
Merge branch 'wip/sadiq/reveal-controls-on-touch' into 'master'

video: Reveal controls on tap

See merge request GNOME/gtk!3648

4 years agoMerge branch 'wip/chergert/gdk-macos-gdkdrop' into 'master'
Matthias Clasen [Thu, 24 Jun 2021 15:03:19 +0000 (15:03 +0000)]
Merge branch 'wip/chergert/gdk-macos-gdkdrop' into 'master'

GdkDrop suport for macOS backend

See merge request GNOME/gtk!3683

4 years agoMerge branch 'dnd-fixes' into 'master'
Matthias Clasen [Thu, 24 Jun 2021 15:01:29 +0000 (15:01 +0000)]
Merge branch 'dnd-fixes' into 'master'

dnd: Add another assertion

See merge request GNOME/gtk!3689

4 years agoMerge branch 'ebassi/filechooser-no-trash' into 'master'
Matthias Clasen [Thu, 24 Jun 2021 14:59:43 +0000 (14:59 +0000)]
Merge branch 'ebassi/filechooser-no-trash' into 'master'

Never show the Trash in the FileChooserWidget side bar

Closes #674

See merge request GNOME/gtk!3692

4 years agoMerge branch 'checkbutton-release-outside' into 'master'
Matthias Clasen [Thu, 24 Jun 2021 14:58:42 +0000 (14:58 +0000)]
Merge branch 'checkbutton-release-outside' into 'master'

checkbutton: Match GtkButton behavior

Closes #4061

See merge request GNOME/gtk!3691

4 years agoMerge branch 'fix_tests_testdnd' into 'master'
Matthias Clasen [Thu, 24 Jun 2021 14:54:32 +0000 (14:54 +0000)]
Merge branch 'fix_tests_testdnd' into 'master'

make testdnd trashcan work again

See merge request GNOME/gtk!3700